#pragma once
//#include <SDL.h>
#include "sdl\include\SDL.h"

struct uiInterface
{
	int h;
	int w;
};

struct uiPosition
{
	int x;
	int y;
};

class ui
{
private:
	SDL_Surface * m_buffer; // the screen
	SDL_Surface * m_ui; // UI elements
	int * m_iInterface; // struct
	uiInterface * m_interface;
	uiPosition * m_position; // struct

	/*--- Rect ---*/
	int m_hieght;
	int m_width;

	int m_tiles; // number of images

	/*--- Conditional ---*/
	bool m_int;
	bool m_struct;
	bool m_sPosition;
public:
	/*--- Constructors ---*/
	/*--------------
	a_screen = buffer, a_image = image name
	a_number = images on the top pane
	a_x & a_y = starting location
	a_w = image width, a_h = image hieght 
	--------------*/
	ui(SDL_Surface * a_screen, const char * a_image, int a_number, int a_x, int a_y, int a_w, int a_h);
	ui(SDL_Surface * a_screen, const char * a_file, const char * a_image, int a_number, int a_x, int a_y);
	~ui();
	/*--- Initializers ---*/
	void initialize(const char * a_file);
	/*--- Game Functions ---*/
	void drawCon1(); // draw first constructor
	void drawCon2(); // draw second constructor
	void release();
	/*--- Accessors ---*/
	int getXPos(int a_x) { return m_position[a_x].x; }
	int getYPos(int a_y) { return m_position[a_y].y; }
	int getWidth() { return m_width; }
	int getHieght() { return m_hieght; }
};